import Vue from 'vue'

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import App from './App.vue'
import router from './router'
import store from './store'

// 引入公共样式
import './assets/css/global.css'

// 引入图标
import './assets/fonts/iconfont.css'

// 引入 树形表格插件
import ZkTable from 'vue-table-with-tree-grid'
// 引入日期格式化插件
import moment from 'moment'

Vue.component('zk-table', ZkTable)
// Vue.prototype.$http = axios
Vue.use(ElementUI)
Vue.config.productionTip = false

Vue.filter('format', function (val) {
  return moment(val).format('YYYY-MM-DD HH:mm:ss')
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
